package com.dongjiantong.app.controller.concentratedharmless;

import com.alibaba.dubbo.config.annotation.Reference;;
import com.dongjiantong.farmrecords.service.FarmRecordsHarmlessesService;
import com.dongjiantong.openplatform.annotations.OpenBean;
import lombok.extern.slf4j.Slf4j;

/**
 * 无害化处理
 * @author Lee
 * @date 2018/1/9
 */
@Slf4j
@OpenBean
public class HarmlessesController {

    @Reference(version = "1.0.0")
    public FarmRecordsHarmlessesService farmRecordsHarmlessesService;

    /**
     * 养殖档案无害化集中处理
     * 新建一单无害化记录
     * @param farmRecordsHarmlesses
     * @param toStatus
     * @return
     */
    /*public Response<Map<String,Object>> createOneConcentrated(FarmRecordsHarmlesses farmRecordsHarmlesses,
                                                              Integer toStatus) {

        if (farmRecordsHarmlesses == null) {
            Response.fail("请求对象参数不能为空");
        }
        if (farmRecordsHarmlessesService == null) {
            Response.fail("farmRecordsHarmlessesService 服务为空,请检查后重试");
        }

        LoginInfo loginInfo = UserUtil.getCurrentUser();

        Long id = farmRecordsHarmlessesService.createOneConcentrated(loginInfo,farmRecordsHarmlesses,toStatus);

        return Response.ok();
    }*/


}
